// 用户信息
const userInfo = {}

export const user = (state = userInfo, action) => {
  if (action.type === 'user/getUserInfo') {
    return action.payload
  }
  // 清除 个人信息
  if (action.type === 'user/clearInfo') {
    return ''
  }
  return state
}
